﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/SiteContent.Master" AutoEventWireup="true"
    CodeBehind="Bills.aspx.cs" Inherits="Warehouse.Web.Sales.Bills" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .modulecontent ul li {
            display: block;
            float: left;
            margin: 5px;
            width: 72px;
            height: 95px;
            background: #fff;
            text-align: center;
        }
    </style>

    <script type="text/javascript">
        function showBill(type) {
            var title = ['', '销售单', '销售赠品单', '销售退货单'][type];
            top.showWindow("/Sales/BillView.aspx?type=" + type, { title: title, width: 700, height: 500 }, null);
        }
        function showPayment(payment) {
            var title = ['销售收款单', '退货付款单'][payment]
            top.showWindow("/Sales/PaymentView.aspx?" + (payment ? "payment=payment" : ""), { title: title, width: 700, height: 500 }, null);
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="moduleheader">
        <h4>
            单据录入</h4>
    </div>
    <div class="modulecontent">
        <ul>
            <uc:AuthorityControl ID="AuthorityControl1" runat="server" TargetPage="/Sales/BillView.aspx"
                Action="View">
                <li><a href="#" onclick="showBill(<%= (int)Warehouse.DataAccess.SalesBillType.Sales %>);return false;">
                    <asp:Image ID="Image2" ImageUrl="~/uploads/images/sales.gif" runat="server" /></a></li>
                <li><a href="#" onclick="showBill(<%= (int)Warehouse.DataAccess.SalesBillType.Gift %>);return false;">
                    <asp:Image ID="Image3" ImageUrl="~/uploads/images/sales_gift.gif" runat="server" /></a></li>
                <li><a href="#" onclick="showBill(<%= (int)Warehouse.DataAccess.SalesBillType.Return %>);return false;">
                    <asp:Image ID="Image1" ImageUrl="~/uploads/images/sales_return.gif" runat="server" /></a></li>
            </uc:AuthorityControl>
            <uc:AuthorityControl ID="AuthorityControl1" runat="server" TargetPage="/Sales/PaymentView.aspx">
                <li><a href="#" onclick="showPayment(0);return false;">
                    <asp:Image ImageUrl="~/uploads/images/receipt.gif" runat="server" />
                </a></li>
                <li><a href="#" onclick="showPayment(1);return false;">
                    <asp:Image ImageUrl="~/uploads/images/payment.gif" runat="server" /></a></li>
            </uc:AuthorityControl>
        </ul>
    </div>
</asp:Content>
